package com.xinghanlaser.applet.base.auth.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinghanlaser.applet.base.auth.entity.ResourceDO;
import com.xinghanlaser.applet.base.auth.query.ResourceQuery;
import com.xinghanlaser.applet.base.auth.vo.ResourceTreeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.Set;


/**
 * <p>
 * 资源表（菜单、按钮、接口） Mapper 接口
 * </p>
 *
 * @author dym
 * @since 2019-11-19
 */
@Mapper
public interface ResourceMapper extends BaseMapper<ResourceDO> {
    Set<ResourceDO> selectResourceByRoleId(@Param("roleId")Long roleId);

    Set<ResourceTreeVO> selectTreePage(@Param("pid")Long pid, @Param("resourceName")String resourceName);

    List<ResourceTreeVO> selectTree(@Param("pid") Long pid);
}
